//
//  LogoViewController.m
//  weiGuan
//
//  Created by Zhou Ya on 2/17/14.
//
//

#import "LogoViewController.h"
#import "LogoDA.h"
#import "TBL_USER_SESSION_INFO.h"

@interface LogoViewController ()

@end

@implementation LogoViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    LogoProxy *proxy = [LogoProxy new];
    NSDictionary *sessionInfo = [proxy getSessionInfo];
    
    [self.testLabel setText:sessionInfo[m001_currentUserId]];
    
    LogoDA *logoDA = [LogoDA new];
    TBL_USER_SESSION_INFO *sessionInfoFromDB = [logoDA getSessionInfo:sessionInfo[m001_currentSessionId]];
    
    [self.testDBLabel setText:sessionInfoFromDB.userId];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
